<!DOCTYPE html>
<html>

<head>
  <title><%= title %></title> 
  <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
    integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> 
    <link rel='stylesheet' href='/css/style.css' />  
</head>

<body class="bg">  
  <div class="content">
    <form id="article" action="./connect/login?redirectUrl=<%=redirectUrl%>" method="post " onsubmit="return sub_post(this)">
      <input id="redirectUrl" name="redirectUrl"  style="display:none" value="<%=redirectUrl%>">
      <div class="input-group">
          <span class="input-group-addon" id="basic-addon1">Account</span>
          <input id="account" type="text" name="account" class="form-control" placeholder="Account" aria-describedby="basic-addon1">
        </div>
        <div class="input-group">
          <span class="input-group-addon" id="basic-addon1">Password</span>
          <input id="password" type="password" name="password" class="form-control" placeholder="Password" aria-describedby="basic-addon1">
        </div>   
          <div class="input-group">
              <button id="submit" class="btn btn-default" type="submit">Login</button>
            </div> 
          </form>
  </div>
 
</body>
<!-- Initialize Quill editor -->
<script>
    document.cookie = "test1= <%- title -%>";
  
    // document.getElementById('submit').addEventListener('click',sub_post)
    function sub_post(form) {
       if(form){ 
        if(!account.value){
          alert("账号不能为空")
          return false
        }

        if(!password.value){
          alert("密码不能为空")
          return false
        }
       }
      return true
   
  }
  </script>
<style>
  .content {
    margin-top: 44px;
  }
</style>

</html>